package com.wonderplay.warlord.engine;

import com.wonderplay.warlord.character.Skill;
import com.wonderplay.warlord.character.SkillMatrixEffect;

public class CharacterStatus {
	
	int maxHealth;
	int[] maxElement;
	
	//test code!
	Skill skill;
	
	public CharacterStatus(int maxHealth, int[] maxElement){
		this.maxHealth = maxHealth;
		this.maxElement = maxElement;
		
		//test code! should put all skills into one structure
		int[] manaCost = new int[maxElement.length];
		manaCost[0] = 3;
		
		skill = new Skill(manaCost, 1, true, new SkillMatrixEffect());
	}
	
	public int getMaxHealth(){
		return maxHealth;
	}
	
	public int getElementNum(){
		return maxElement.length;
	}
	
	public int getMaxElementByIndex(int index){
		if (index >= maxElement.length){
			return -1;
		}else{
			return maxElement[index];
		}
	}
	
	public Skill getSkill(){
		return skill;
	}
}
